﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ArticleWeb.Models
{
    public class TreeNode
    {
        public int id { get; set; }
        public string name { get; set; }
        public bool spread { get; set; }
        public int? parent { get; set; }
        public List<TreeNode> children { get; set; }
    }

    public class JsTreeItem
    {
        public JsTreeItem()
        {
            state = new JsTreeItemState();
        }
        public string id { get; set; }
        public string parent { get; set; }
        public string text { get; set; }
        public JsTreeItemState state { get; set; }
    }
    public class JsTreeItemState
    {
        public JsTreeItemState()
        {
            opened = true;
        }
        public bool opened { get; set; }
        public bool disabled { get; set; }
        public bool selected { get; set; }
    }
}